package com.javasm.mb_store_api_final.sys_control.usercontrol.sys_user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.javasm.mb_store_api_final.sys_control.rolecontrol.sys_role.entity.SysRole;
import com.javasm.mb_store_api_final.sys_control.usercontrol.sys_user.entity.SysUser;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * (SysUser)表服务接口
 *
 * @author makejava
 * @since 2024-07-29 20:19:15
 */
public interface SysUserService extends IService<SysUser> {


    List<SysUser> queryAll();

    List<SysUser> queryBy(SysUser user);

    void add(SysUser user);

    void update(Integer uid, SysUser user);

    void deleteById(Integer userId);


    SysUser getByPhone(String phone);

    SysUser getByUsername(String name);

   SysRole getRole(int roleId);


    Map<String, Set<String>> paramList();

    long countall();
}
